{extend name='base'/}
{block name='content'}
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">分类管理</a></li>
    <li class="active">分类添加</li>
</ul>
<div class="col-sm-12">
    <section class="panel panel-default">
        <header class="panel-heading font-bold">分类添加</header>
        <div class="panel-body">
            <form method="post" action="" class="bs-example form-horizontal">
                <div class="form-group">
                    <label class="col-lg-2 control-label">所属分类</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" name="cname" disabled value="{$top['cname']}">
                        <input type="hidden" name="pid" value="{:input('param.pid')}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">分类名称</label>
                    <div class="col-lg-10">
                        <input type="text" class="form-control" name="cname">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-lg-2 control-label">类型</label>
                    <div class="col-lg-10">
                        <select name="tid" id="">
                            {volist name="typeList" id="data"}
                            <option value="{$data['tid']}">{$data['tname']}</option>
                            {/volist}
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-lg-offset-2 col-lg-10">
                        <button type="submit" class="btn btn-sm btn-default">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </section>
</div>
{/block}